package com.dinkshow.dinkshow.user.mapper;


import com.dinkshow.dinkshow.user.model.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Options;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Service;

/**
 *功能描述: 11
 * @author yuwc
 * @param  * @param null 
 * @return 
 *备注       
 */
@Service
public interface UserMapper {
    /**
     * AAA
     * @param id
     * @return
     */
    @Select("select * from user where id = #{id}")
    User getById(int id);

    @Insert("insert into user values(#{id},#{name},#{phone},#{address},#{wxOpenId},#{head_imge},#{modify_time},#{create_time})")
    @Options(useGeneratedKeys=true,keyProperty="id")
    public int add(User param);

}